home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / XML Utilities / Professional Programmer XSL IDE / Xselerator25.msi / Data.Cab / F43606_testScanl.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2002-03-16  |  1.1 KB  |  40 lines

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  2. xmlns:myAdd="f:myAdd"
  3. xmlns:myParam="f:myParam"
  4. >
  5.   <xsl:import href="scanlDVC.xsl"/>
  6.   <xsl:output omit-xml-declaration="yes" indent="yes"/>
  7.  
  8.   <myAdd:myAdd/>
  9.   
  10.   <myParam:myParam>0</myParam:myParam>
  11.   
  12.   <xsl:template match="/">
  13.    
  14.     <xsl:variable name="vFun" select="document('')/*/myAdd:*[1]"/>
  15.     <xsl:variable name="vZero" select="document('')/*/myParam:*[1]"/>
  16.  
  17.     
  18.     <xsl:call-template name="scanl">
  19.       <xsl:with-param name="pFun" select="$vFun"/>
  20.       <xsl:with-param name="pQ0" select="$vZero" />
  21.       <xsl:with-param name="pList" select="/*/num"/>
  22.     </xsl:call-template>
  23.     
  24.     - - - - - - - - - - -
  25.     
  26.      <xsl:call-template name="scanl1">
  27.       <xsl:with-param name="pFun" select="$vFun"/>
  28.       <xsl:with-param name="pList" select="/*/num"/>
  29.     </xsl:call-template>
  30.     
  31.   </xsl:template>
  32.   
  33.   <xsl:template match="myAdd:*">
  34.     <xsl:param name="pArg1" select="0"/>
  35.     <xsl:param name="pArg2" select="0"/>
  36.   
  37.     <xsl:value-of select="$pArg1 + $pArg2"/>
  38.   </xsl:template>
  39.   
  40. </xsl:stylesheet>